<?php

namespace System\Data;

interface IDataDriver
{

    /**
     * @return boolean
     */
    function Connect(\System\Core\ConfigItems $items);

    /**
     * @return boolean
     */
    function Dispose();

    /**
     * @return boolean
     */
    function SelectDatabase(\System\Types\String $base, \System\Types\String $user = null, \System\Types\String $pass = null);

    /**
     * @return IDataResult
     */
    function Run(\System\Types\String $sql, Array $values = array());
}
